# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Deleting field 'Layout.map_latitude'
        db.delete_column('home_layout', 'map_latitude')

        # Deleting field 'Layout.map_longitude'
        db.delete_column('home_layout', 'map_longitude')

        # Deleting field 'Layout.map_zoom'
        db.delete_column('home_layout', 'map_zoom')


    def backwards(self, orm):
        
        # Adding field 'Layout.map_latitude'
        db.add_column('home_layout', 'map_latitude', self.gf('django.db.models.fields.DecimalField')(default=-2.4559000000000002, max_digits=6, decimal_places=4), keep_default=False)

        # Adding field 'Layout.map_longitude'
        db.add_column('home_layout', 'map_longitude', self.gf('django.db.models.fields.DecimalField')(default=51.406199999999998, max_digits=6, decimal_places=4), keep_default=False)

        # Adding field 'Layout.map_zoom'
        db.add_column('home_layout', 'map_zoom', self.gf('django.db.models.fields.IntegerField')(default=8), keep_default=False)


    models = {
        'home.layout': {
            'Meta': {'object_name': 'Layout'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'large_item_1': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'large_item_1_service'", 'to': "orm['service.Service']"}),
            'large_item_2': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'large_item_2_service'", 'to': "orm['service.Service']"}),
            'small_item_1': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_1_service'", 'to': "orm['service.Service']"}),
            'small_item_2': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_2_service'", 'to': "orm['service.Service']"}),
            'small_item_3': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_3_service'", 'to': "orm['service.Service']"}),
            'small_item_4': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_4_service'", 'to': "orm['service.Service']"}),
            'small_item_5': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_5_service'", 'to': "orm['service.Service']"}),
            'welcome_copy': ('django.db.models.fields.TextField', [], {})
        },
        'service.category': {
            'Meta': {'object_name': 'Category'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'brief_description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '45'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '45', 'db_index': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
        },
        'service.service': {
            'Meta': {'object_name': 'Service'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'after_image': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'before_image': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'brief_description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['service.Category']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '45'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '45', 'db_index': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
        }
    }

    complete_apps = ['home']
